module QuestionTypesHelper
  def question_type_changed_tag(question_version)

    hidden_field_tag :question_type_changed, '',
         id: "question_type_changed_#{question_version.id}", value: '0'
      #<input id=<%= raw "question_type_changed_#{question_version.id}" %>
      #    name="question_type_changed" 
      #    type="hidden" value="0"\>
  end
  def question_type_selection(question_version, question_type)
    raw "<li>
        <a onClick=\"set_question_type_selection('#{question_version.id}', '#{question_type.id}',
          'question_form_#{question_version.question_id}')\">
        #{question_type.name}</a></li>"
      #<li onClick=<%=
      #    raw "\"set_question_type_selection('#{question_version.id}', '#{question_type.id}', '#{form_id}')\"" %>>
      #  <a><%= question_type.name %></a>
      #</li>
  end
end
